package org.wyf.EveryPoint;

import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.wyf.EveryPoint.common.annotation.EveryPoint;

/**
 * @author wyf
 */
@ComponentScan(value="org.wyf")
@MapperScan("org.wyf.*.*.mapper")
@EveryPoint
public class EveryPointApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        new SpringApplicationBuilder(EveryPointApplication.class)
                .web(WebApplicationType.SERVLET)
                .run(args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(EveryPointApplication.class);
    }
}
